<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    protected function _initZFDebug() {
        $autoloader = Zend_Loader_Autoloader::getInstance();
        $autoloader->registerNamespace('ZFDebug');

        if ('development' == APPLICATION_ENV) {
            $options = array(
                'jquery_path' => 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js',
                'plugins' => array('Variables',
                    'Html',
                    'Database' => array(),
                    'File' => array('basePath' => APPLICATION_PATH ),
                    'Memory',
                    'Time',
                    'Registry',
                    //'Cache' => array('backend' => $cache->getBackend()),
                    'Exception')
            );
            $debug = new ZFDebug_Controller_Plugin_Debug($options);

            $this->bootstrap('frontController');
            $frontController = $this->getResource('frontController');
            $frontController->registerPlugin($debug);
        }
    }

}

